import imgid from './imgid'
import bigimgid from './bigimgid'
import bigsrc from './bigsrc'
import errsrc from './errsrc'

const install_imgid = function(Vue) {
  Vue.directive('imgid', imgid)
}

const install_bigimgid = function(Vue) {
  Vue.directive('bigimgid', bigimgid)
}

const install_bigsrc = function(Vue) {
  Vue.directive('bigsrc', bigsrc)
}

const install_errsrc = function(Vue) {
  Vue.directive('errsrc', errsrc)
}

if (window.Vue) {
  window.Vue.use(install_imgid)
  window.Vue.use(install_bigimgid)
  window.Vue.use(install_bigsrc)
  window.Vue.use(install_errsrc)
}

imgid.install = install_imgid
bigimgid.install = install_bigimgid
bigsrc.install = install_bigsrc
errsrc.install = install_errsrc

export { imgid, bigimgid, bigsrc, errsrc }
